How to implement bridging/NAT on linux? [closed]

Posted by mikepurvis on Stack Overflow See other posts from Stack Overflow or by mikepurvis
Published on 2011-01-17T22:27:21Z Indexed on 2012/06/11 10:40 UTC
Read the original article Hit count: 201

Filed under:
|
|
|

What I have is a network topology which looks like this:

------ PC --- IP Camera

The PC has two ethernet interfaces, and is hosting a small webserver providing some auxiliary data. The issue is that the server on the PC runs on port 80, and the IP Camera is also running on port 80. Currently, we are bridging them, so that the PC's server is accessible at 192.168.0.2 and the camera at 192.168.0.3.

However, what I'm trying to explore is the feasibility of using the PC to expose them both on the PC's IP, ideally both on port 80. Can this be done with regular sockets, or will it be necessary to use raw sockets?

© Stack Overflow or respective owner

Related posts about sockets

Related posts about networking